<template>
  <div class="app">
    <sect></sect>
    <div class="major">
      <div class="head">
        <div class="head1">
          <img
            src="../../assets/xhs.png"
            style="width: 24px; height: 24px"
            alt=""
          />
          <p class="sub">
            <van-tabs v-model="active">
              <van-tab title="关注">
                <attention></attention>
               </van-tab>
              <van-tab title="发现" style="width: 100%">
                <note></note>
              </van-tab>
              <van-tab title="本地">
                <div class="aaa">
                      <div class="subject">
                        <div class="subject_left" id="subject_left1">
                          <div class="subject_left_1">
                            <img src="../../assets/01.webp" />
                            <p class="nr">{{ nr }}</p>
                            <div class="sub_1">
                              <p class="sub_1_1">
                                <img
                                  src="../../assets/01.webp"
                                  style="
                                    width: 20px;
                                    height: 20px;
                                    border-radius: 50%;
                                  "
                                  alt=""
                                />
                                &nbsp;&nbsp;
                                <span>{{ usme }}</span>
                              </p>
                              <p class="sub_1_1">
                                <van-icon
                                  name="like-o"
                                  style="font-size: 18px"
                                />
                                <span>123213</span>
                              </p>
                            </div>
                          </div>
                        </div>

                        <div class="subject_right">
                          <div class="subject_right_1">
                            <img src="../../assets/01.webp" />
                            <p class="nr">{{ nr }}</p>
                            <div class="sub_1">
                              <p class="sub_1_1">
                                <img
                                  src="../../assets/01.webp"
                                  style="width: 20px;
                                    height: 20px;
                                    border-radius: 50%;
                                  "
                                  alt=""
                                />
                                &nbsp;&nbsp;
                                <span>{{ usme }}</span>
                              </p>
                              <p class="sub_1_1">
                                <van-icon
                                  name="like-o"
                                  style="font-size: 18px"
                                />
                                <span>123213</span>
                              </p>
                            </div>
                          </div>
                        </div>
                      </div>
                </div>
              </van-tab>
              <sect></sect>
            </van-tabs>
          </p>
          <a href="#" class="search"
            @click="sou"><img
              src="../../assets/search.png"
              style="width: 25px; height: 25px"
              alt=""
          /></a>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import sect from "../../components/Sectorization.vue";
import note from "../../components/note.vue";
import attention from "../../components/attention.vue";

export default {
  components: {
    sect,
    note,
    attention
  },
  data() {
    return {
      nr: "时候实话实说",
      usme: "千万人",
      active: 1,
    };
  },
  methods: {
    sou() {
      this.$router.push("/index_search")
    }
  }
};
</script>
 
<style scoped>
.app {
  width: 100%;
}

.head {
  width: 390px;
  /* height: 40px; */
  background-color: rgb(255, 255, 255);
  text-align: center;
  line-height: 40px;
  position: fixed;
  top: 0;
  z-index: 999;
}

.head1 img {
  float: left;
  margin-top: 8px;
  margin-left: 10px;
}
.head1 {
  background: rgb(255, 255, 255);
  z-index: 999;
}

.head1 p {
  width: 190px;
  display: inline-block;
  margin-left: 30px;
}

.head1 p a:nth-child(2) {
  margin-left: 40px;
}

.head1 p a:nth-child(3) {
  margin-left: 40px;
}

.head1 p a {
  color: rgb(190, 189, 189);
}

.search {
  float: right;
  line-height: 50px;
  margin-right: 10px;
  color: white;
}
.subject_left_1 {
  padding: 5px;
  /* background: firebrick; */
}
.nr{
  margin: 0 10px !important;
  font-size: 14px;
  /* background: #f65c5c; */
  width: 165px;
  text-align: left;
  margin-top:0px ;
  padding: -30px;
  line-height: 20px;
  /* margin-left:10px !important; */
}

.aaa {
  margin-left: -111px;
    width: 400px;
}
/* 主体内容 */
.subject {
  margin-top: 10px;
  padding-bottom: 50px;
  box-sizing: border-box;
  padding-right: 5px;
}
/* 主体内容左 */
.subject_left {
  width: 186px;
  float: left;
  overflow: hidden;
  padding-left: 5px;
  /* background-color: aquamarine; */
}
.sub_1_1 {
  display: flex;
  align-items: center;
  /* margin-top: 5px; */
  margin-left: 10px !important;
}

.sub_1 {
  display: flex;
  justify-content: space-between;
  color: black;
  font-size: 2px;
  /* margin-left: 10px; */
}

.subject_right img {
  width: 190px;
  /* height: 320px; */
  margin-bottom: 4px;
  margin-left: 5px !important;
}
.subject_left img {
  width: 190px;
  /* height: 320px; */
  margin-bottom: 4px;
  margin-left: 0;
}
/* 主体内容右 */
.subject_right {
  width: 190px;
  /* height: 1800px; */
  float: right;
  margin-top: 5px;
  padding-right: 12px;
  overflow: hidden;
  margin-left: -15px !important;
  /* box-sizing: border-box; */
  /* background-color: rgb(122, 122, 122); */
}
</style>